3. Diagonalization